package com.example.demo.rest.ecom;

import com.example.demo.api.ecom.SmbApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SmbController {
    @Autowired
    SmbApi smbApi;

    @GetMapping("getSmbUser")
    public Object getSmbUser(@RequestParam("uid") String uid) {
        return smbApi.getSmbUser(uid);
    }

    @GetMapping("customGroup")
    public Object customGroup(@RequestParam("coustomerGroupId") String coustomerGroupId) {
        return smbApi.customGroup(coustomerGroupId);
    }
}
